<form enctype="multipart/form-data" method="POST" action="/save/galleryalbum/">
    <input id="album_id" type="hidden" name="album_id" value="<?= $this->form->getElement()->getId() ?>"  />
    <input id="type_form" type="hidden" name="type_form" value=<?= $this->form->getType() ?> />
    <div class="form-data">
        <label for="title">Название:</label>
        <input id="album_title" type="text" name="album_title" value="<?= $this->form->getElement()->getTitle() ?>" />
    </div>
    <? if ($this->form->getElement()->getId()):?>
        <a class="btn btn-green" href="/admin/create/gallery/?album=<?= $this->form->getElement()->getId(); ?>">Добавить фотографию</a>
        <br/>
        <br/>
    <? endif; ?>
    <? foreach ($this->form->getElement()->getPhotos() as $photo): ?>
        <?/**@var $photo Application_Model_Photo */?>
        <div class="admin-photo">
            <a href="/admin/edit/gallery/?id=<?=$photo->getId();?>&album=<?= $this->form->getElement()->getId()?>" class="photo">
                <img src="<?=$this->baseUrl()?><?= $photo->getThumbPath()?>" width="180" height="180" alt=""/>
            </a>
            <label for="album_icon">Иконка:</label>
            <input <?if ($photo->getThumbPath() == $this->form->getElement()->getAlbumIcon()) :?>checked="checked" <?endif;?>  type="radio" value="<?= $photo->getThumbPath()?>" name="album_icon" id="album_icon"/>
            <a href="/admin/delete/gallery/?id=<?= $photo->getId(); ?>">Удалить</a>
        </div>
    <? endforeach; ?>
    <div style="padding-top: 10px; clear: both;">
        <input type="submit" name="submit" value="Сохранить">
    </div>
</form>

<style type="text/css">
    .admin-photo{float: left;width: 180px; margin: 4px; border: 1px solid;}
</style>